<?php
class ModelAccountAccountRight extends Model {
	
	public function getItems($flag) {
		if($flag=='logged'){
		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "module_right where logged=1 ORDER BY item_id");
		}
		if($flag=='nologged'){
	    $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "module_right where nologged=1 ORDER BY item_id");
		}
		return $query->rows;
	}	
}
?>
